package com.yytek.common.client.net;

import com.yytek.common.client.net.model.PropertyPostReply;


public class IotMqttContext {
    private IotMqttClient client;
    private String productId;
    private String deviceName;
    private String topic;
    private String destination;

    public  IotMqttContext(IotMqttClient client, String topic, String productId, String deviceName, String destination){
        this.client=client;
        this.productId=productId;
        this.deviceName=deviceName;
        this.topic=topic;
        this.destination=destination;
    }

    public void replyPropertyPost(PropertyPostReply reply){
        this.client.replyPropertyPost(productId,deviceName,reply);
    }

    public IotMqttClient getClient() {
        return client;
    }

    public void setClient(IotMqttClient client) {
        this.client = client;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

}
